package com.ruoyi.activiti.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 请假对象 dan_workflow_leave
 *
 * @author cjie
 * @date 2022-12-20
 */
@Data
@ApiModel
public class DanWorkflowLeave extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @ApiModelProperty(value = "主键ID")
    private String id;

    /** 请假类型 */
    @Excel(name = "请假类型")
    @ApiModelProperty(value = "请假类型")
    private String type;

    /** 标题 */
    @Excel(name = "标题")
    @ApiModelProperty(value = "标题")
    private String title;

    /** 原因 */
    @Excel(name = "原因")
    @ApiModelProperty(value = "原因")
    private String reason;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date leaveStartTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private Date leaveEndTime;

    /** 附件 */
    @ApiModelProperty(value = "附件")
    private String attachmentLink;

    /** 流程实例ID */
    @ApiModelProperty(value = "流程实例ID")
    private String instanceId;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty(value = "状态")
    private String state;

    /** 创建者名称 */
    @ApiModelProperty(value = "创建者名称")
    private String createName;


}
